<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        let arr = [1,2,3,4]
        let arr1 = arr.values()
        for (let e of arr1) {
            document.write(e);   // 1,2,3,4

        }

    </script>
</head>
<body>

</body>
</html>